var onlyOfficeCallBack = '/onlyOfficeCallBack?'
if(netdisk != undefined &&netdisk == 1){
    onlyOfficeCallBack = '/netdisk/onlyOfficeCallBack?'
}
window.docEditor = new DocsAPI.DocEditor("placeholder",
    {
        "document": {
            "fileType": type,
            // "key": AID+'_'+userInfo.uid,
            "title": title,
            "url": url,
            "info": {
                "author": "Me",
                "created": "Mon Apr 19 2021"
            },
            "permissions": {
                "comment": edit,
                "download": true,
                "edit": edit,
                "fillForms": edit,
                "modifyFilter": true,
                "modifyContentControl": true,
                "review": edit
            }
        },

        "documentType": documentType,
        "editorConfig": {
            "callbackUrl": http+onlyOfficeCallBack+attUrl,
            "lang": "zh",
            "mode": "edit",
            "user": {
                "id": userInfo.uid,
                "name": userInfo.userName
            },
            "customization":{
                "forcesave":"true"
            }
        },
        "height": "100%",
        "width": "100%"
    });